package org.zfes.snowier.cloud.zbss.cms.content.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsContentType extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsContentType() {}
	public CmsContentType(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="种类ID不能为空")
	
	  private java.lang.Long typeId;
 
	@javax.validation.constraints.NotNull(message="名称不能为空")
	@javax.validation.constraints.NotBlank(message="名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=20,message="名称长度不能大于20")
	  private java.lang.String typeName;
 
	
	  private java.lang.Integer imgWidth;
 
	
	  private java.lang.Integer imgHeight;
 
	@javax.validation.constraints.NotNull(message="是否有图片不能为空")
	  private java.lang.Boolean hasImage;
 
	@javax.validation.constraints.NotNull(message="是否禁用不能为空")
	  private java.lang.Boolean isDisabled;
 
	
	//<-------------------------------------------->
	public CmsContentType setTypeId(java.lang.Long typeId){
	 this.typeId=typeId;
	 return this;
	}
	public java.lang.Long getTypeId(){
		return this.typeId;
	}
	public CmsContentType setTypeName(java.lang.String typeName){
		this.typeName=typeName==null?null:typeName.trim();
	 return this;
	}
	public java.lang.String getTypeName(){
		return this.typeName;
	}
	public CmsContentType setImgWidth(java.lang.Integer imgWidth){
	 this.imgWidth=imgWidth;
	 return this;
	}
	public java.lang.Integer getImgWidth(){
		return this.imgWidth;
	}
	public CmsContentType setImgHeight(java.lang.Integer imgHeight){
	 this.imgHeight=imgHeight;
	 return this;
	}
	public java.lang.Integer getImgHeight(){
		return this.imgHeight;
	}
	public CmsContentType setHasImage(java.lang.Boolean hasImage){
	 this.hasImage=hasImage;
	 return this;
	}
	public java.lang.Boolean getHasImage(){
		return this.hasImage;
	}
	public CmsContentType setIsDisabled(java.lang.Boolean isDisabled){
	 this.isDisabled=isDisabled;
	 return this;
	}
	public java.lang.Boolean getIsDisabled(){
		return this.isDisabled;
	}

}
